<?php

namespace maotool\core\annotation;

use Attribute;
use maotool\core\validate\validator\DefaultValidator;

#[Attribute(Attribute::TARGET_PARAMETER | Attribute::TARGET_CLASS)]
readonly class FormValidateRule
{

    public function __construct(
        public ?bool   $required = false,
        public ?string $message = "请输入值",
        public ?int    $min = 0,
        public ?int    $mix = 0,
        public ?string $validator = DefaultValidator::class,
        public ?array  $results = [],
    )
    {
    }

}